import numpy as np
import pandas as pd
basicdata={
    'mass':16000,
    'S':60,
    'cA':5,
    "g":9.80665,
    "Ixx":59563.2,
    "Iyy":299563,
    "Izz":385369,
    "Ixz":8974.17,
    "h":9000,
    'rho':0.467063
}
def read_data(longfilename,lafilename):
    longdata=pd.read_csv(longfilename,header=None)
    longdata.columns=['mach','v0','alpha0',
                      'de0','T','M_a',
                      'M_a_dot','M_q','M_de',
                      'L_a','D_a','L_V','D_V',
                      'n_a']
    #print(longdata.shape)
    ladata=pd.read_csv(lafilename,header=None)
    ladata.columns=['mach','L_b','L_p','L_r',
                    'L_da','L_dr','N_b',
                    'N_p','N_r','N_da',
                    'N_dr','Y_b','Y_dr']
    #print(ladata.shape)
    return longdata,ladata